import request from '@/utils/request'

export function login(logName, pwd) {
    return request({
        url: '/api/server/userInfo/login',
        method: 'post',
        data: {
            logName,
            pwd
        }
    })
}

export function getInfo(token) {
    return request({
        url: '/api/console/accountInfo/router?platform=2',
        method: 'get'
    })
}

export function logout() {
    return request({
        url: '/api/console/accountInfo/logout',
        method: 'get'
    })
}
export function identification(loginName) {
    return request({
        url: '/api/console/accountInfo/identification',
        method: 'post',
        data: {
            loginName,
            platform:2
        }
    })
}
